package com.fh.controller;

import com.fh.model.IndexImg;
import com.fh.service.QueryImgService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("img")
public class QueryImgController {
    @Resource
    private QueryImgService queryImgService;


    @GetMapping("query")
    public List<IndexImg> query(){
        return  queryImgService.queryImg();
    }


}
